package com.xbongbong.pro.instock.pojo.dto;

import com.xbongbong.paas.constant.PaasConstant;
import com.xbongbong.paas.enums.DelEnum;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import com.xbongbong.saas.domain.entity.OutstockProductEntity;
import com.xbongbong.saas.domain.entity.ext.OutstockEntityExt;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/3/1 23:09
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class RetMaterielListDTO extends BaseDTO {
    private static final long serialVersionUID = -3028581803016944553L;

    /**
     * 退料入库单
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private List<Long> instockIdIn;

    /**
     * 退料出库单
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private List<Long> outstockIdIn;

    /**
     * 本次删除操作
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private List<Long> delInstockIdList;

    private Map<Long, OutstockEntityExt> materielOutstockMap;

    private List<OutstockProductEntity> productionOrderProductList;

    private Integer del;

    public RetMaterielListDTO(){
        del = DelEnum.NORMAL.getDel();
        materielOutstockMap = new HashMap<>(PaasConstant.DEFAULT_INITIAL_CAPACITY);
    }
}
